package com.bookhouse.action;

import java.util.Set;

import com.bookhouse.domain.Menu;
import com.bookhouse.service.MenuService;
import com.opensymphony.xwork2.ActionSupport;

public class MenuAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Set<Menu> sets;
	private MenuService menuService;

	public Set<Menu> getSets() {
		return sets;
	}

	public void setSets(Set<Menu> sets) {
		this.sets = sets;
	}

	public void setMenuService(MenuService menuService) {
		this.menuService = menuService;
	}

	// @SkipValidation
	public String getMenuList() throws Exception {
		sets = menuService.getAllMenu();
		return "getMenuList";
	}
}
